<template>
  <div id="app1">
    <img src="./assets/logo.png">
    <div class="list-group">
      <!-- <router-link to="/">Go to HelloWorld</router-link>
      <router-link to="/TestRouter">Go to TestRouter</router-link> -->
      <!-- 命名路由（路由配置的name属性） -->
      <router-link :to="{ name: 'HelloWorld' }">Go to HelloWorld</router-link>
      <router-link :to="{ name: 'TestRouter' }">Go to TestRouter</router-link>
    </div>
    <router-view/>
    <!-- <firstcomponent></firstcomponent> -->
    <tree></tree>
  </div>
</template>

<script type="text/ecmascript-6">
import firstcomponent from './components/nav'
import tree from './components/tree'
export default {
  name: 'App',
  components: { 
    firstcomponent,
    tree
  },
  data () {
    return {
      
    }
  },
  methods: {
    
  }
}
</script>

<style lang="less" scoped>
#app1 {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  .list-group{
    background-color: #cccccc;
    color: red;
  }
}
</style>
